<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{zlfxForm.bundleName}"/>
    <head>
        <title>#{text['zlfxDetail.title']}</title>
        <meta name="heading" content="#{text['zlfxDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="zlfxForm">

<h:form id="zlfxForm" onsubmit="return validateZlfxForm(this)">
<h:inputHidden value="#{zlfxForm.zlfx.id}" id="id"/>
<h:inputHidden value="#{zlfxForm.zlfx.version}" id="version"/>
<h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{zlfxForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty zlfxForm.zlfx.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{zlfxForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Zlfx')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="enysbl" value="#{text['zlfx.enysbl']}"/>
    <t:message for="enysbl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="enysbl" value="#{zlfxForm.zlfx.enysbl}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="enysje" value="#{text['zlfx.enysje']}"/>
    <t:message for="enysje" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="enysje" value="#{zlfxForm.zlfx.enysje}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="hjbl" value="#{text['zlfx.hjbl']}"/>
    <t:message for="hjbl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="hjbl" value="#{zlfxForm.zlfx.hjbl}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="hjje" value="#{text['zlfx.hjje']}"/>
    <t:message for="hjje" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="hjje" value="#{zlfxForm.zlfx.hjje}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ynyxbl" value="#{text['zlfx.ynyxbl']}"/>
    <t:message for="ynyxbl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ynyxbl" value="#{zlfxForm.zlfx.ynyxbl}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ynyxje" value="#{text['zlfx.ynyxje']}"/>
    <t:message for="ynyxje" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ynyxje" value="#{zlfxForm.zlfx.ynyxje}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yzenbl" value="#{text['zlfx.yzenbl']}"/>
    <t:message for="yzenbl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yzenbl" value="#{zlfxForm.zlfx.yzenbl}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yzenje" value="#{text['zlfx.yzenje']}"/>
    <t:message for="yzenje" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yzenje" value="#{zlfxForm.zlfx.yzenje}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zklx" value="#{text['zlfx.zklx']}"/>
    <t:message for="zklx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zklx" value="#{zlfxForm.zlfx.zklx}" required="true" maxlength="50">
        <v:commonsValidator type="required" arg="#{text['zlfx.zklx']}"/>
    </h:inputText>
    <!-- 
     <h:outputLabel styleClass="desc" for="ny" value="#{text['zlfx.ny']}"/>
    <t:message for="ny" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ny" value="#{zlfxForm.zlfx.ny}" required="true" maxlength="255">
        <v:commonsValidator type="required" arg="#{text['zlfx.ny']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['zlfx.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{zlfxForm.zlfx.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['zlfx.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{zlfxForm.zlfx.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['zlfx.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{zlfxForm.zlfx.username}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['zlfx.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{zlfxForm.zlfx.xh}" required="false" maxlength="255">
    </h:inputText> -->
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateZlfxForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('zlfxForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
